home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / AMUG Info / Preferred / TF Macro Tool / CONNECT explained < prev    next >
Text File  |  1990-05-22  |  3KB  |  91 lines

  1.  
  2.  
  3. *real short* docs for the TF Macro Tool
  4.  
  5. •     If you need to use a non-standard connection sequence to access
  6.     your modem use this connection tool.
  7.  
  8. •      The Macro tool reads from text documents with a creator
  9.     of 'TFMC'.
  10.  
  11. •      Put the tool in the same folder as TeleFinder/User before you
  12.     open the program.
  13.  
  14. •      Open the "TF Macro Tool" icon to turn it on, and
  15.     select a macro document to use.
  16.  
  17. •      This rev of the Macro tool does not complain if you
  18.     give it a command it does not understand, it just skips the 
  19.     command line and procedes to the next.
  20.  
  21. •     To create new macro files, use TF's Text editor and save the 
  22.     file with a creator of 'TFMC' in the other field, with the
  23.     Other button selected.
  24.     
  25. The sample macro follows
  26.  
  27.  
  28. BAUD 2400;  <<     sets the baud rate to 2400, you can set any of the rates 
  29.                 that TF knows about.  ( 19.2K would be BAUD 19200; )
  30.                 
  31. resetBd:    <<     a label for branching ( use any word  that is not a command
  32.                 followed by the colon.
  33.                 
  34. SLOW 4;        <<     sets a delay of 4 ticks between chars to simulate typing
  35.  
  36. * comment        << use the * to enter a comment in your macro
  37.  
  38. TYPE "AT^M"        <<     Types AT ( return ) to the modem
  39.                     the ^ char turns the next character into a control char
  40.  
  41. PROMPSEC 4;        <<     set a wait time of 4 seconds for the PROMPT command
  42. PROMPT "OK"        <<     look for OK to come from the modem
  43.  
  44. FALSE "resetBd"        << if PROMPT is false ( no OK ) branch to the resetBd label
  45.  
  46. reset:
  47. TYPE "AT^M"
  48. PROMPSEC 4;
  49. PROMPT "OK"
  50. FALSE "reset"
  51.  
  52. ReDial:
  53. TYPE "ATM1^M"        << turns your modem speaker on
  54. PROMPT "OK"
  55.  
  56. TYPE "ATDT730-5785^M"    <<     tell the modem to dial
  57.  
  58. PAUSE 2;                <<     clear data fom the modem line for 2 secs
  59.  
  60. PROMPSEC 45;            <<     set the wait time to 45 seconds for a connection
  61.  
  62. GETLINE "^M"            <<     put the following chars into an internal buffer
  63.                             until you hit a return ( the beginning of the modem
  64.                             connection response
  65.                             
  66. FALSE "theEnd"            <<     modem didn't respond, get out of here
  67.     
  68.  
  69. GETLINE "^M"            <<     put the actual response into the buffer.
  70. FALSE "theEnd"            <<     modem didn't respond, get out of here
  71.  
  72. CMPLINE "CONNECT"        << is CONNECT in the buffer?
  73. TRUE "setConnect"        << yep, set the connection flag, return to TF
  74.  
  75. CMPLINE "BUSY"            << CONNECT not there, is BUSY?
  76.  
  77. TRUE "resetBd"            <<     yes, try again
  78. GOTO "theEnd"            <<    set the cancel flag a response that we aren't 
  79.                             expecting
  80.  
  81. setConnect:
  82. CONNECT 1;                << set the connect flag to 1, ( 0 is ok too )
  83. END                        << Macro finishes, back to TF
  84.  
  85. theEnd:
  86. CANCEL                    <<     set cancel flag so the dialer won't continue
  87.                             with the password sequence.
  88. END
  89.  
  90.  
  91.